﻿using UcsHyperV.helper;





Config.Initialize();
HttpServer httpServer = new HttpServer(Config.port);
httpServer.Start();
var start_time=DateTime.Now;
Console.Title = "Hyper-V被控 服务已启动 端口:" + Config.port + " Powered By 羊驼云";
while (true)
{
    if (!httpServer.Status())
    {
        httpServer.Start();
    }
    else
    {
        var time = DateTime.Now.Subtract(start_time);
        Console.Title = "Hyper-V被控 服务已启动 端口:" + Config.port + " Powered By 羊驼云 已运行" + time.Days + "天" + time.Hours + "小时" + time.Minutes + "分" + time.Seconds + "秒";

    }
    Thread.Sleep(1000);
}